using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace CMSWeb.Content.Data
{
	public class DBContentItem
	{
		//public DBContentItem() : this("CMSWeb.Content")
		//{
				
		//}

		//public DBContentItem(string connName) : base(connName)
		//{
			
		//}

		//public ContentItem Load(int contentItemID)
		//{
		//    ContentItem item = null;

		//    using ( SqlConnection conn = new SqlConnection(_connectionString) )
		//    {
		//        SqlCommand cmd = new SqlCommand("udsp_ContentItem_Select", conn);
		//        cmd.CommandType = CommandType.StoredProcedure;

		//        cmd.Parameters.Add("@ContentItemID", SqlDbType.Int).Value = contentItemID;

		//        SqlDataReader sdr = cmd.ExecuteReader();

		//        if ( sdr.Read() )
		//        {
		//            item = new ContentItem(sdr);
		//        }
		//        sdr.Close();
		//    }

		//    return item;
		//}

		//public void Save(ContentItem item)
		//{

		//}

		//public void Delete(int contentItemID)
		//{

		//}
	}
}
